package com.lrkj.payfee.mapper;

import com.lrkj.payfee.domain.FavouredPolicy;

import java.util.List;

/**
 * 优惠政策Mapper接口
 *
 * @author yajun_ren
 * @date 2021-08-14
 */
public interface FavouredPolicyMapper {
    /**
     * 查询优惠政策
     *
     * @param favouredPolicyId 优惠政策ID
     * @return 优惠政策
     */
    public FavouredPolicy selectFavouredPolicyById(String favouredPolicyId);

    /**
     * 查询优惠政策列表
     *
     * @param favouredPolicy 优惠政策
     * @return 优惠政策集合
     */
    public List<FavouredPolicy> selectFavouredPolicyList(FavouredPolicy favouredPolicy);

    /**
     * 新增优惠政策
     *
     * @param favouredPolicy 优惠政策
     * @return 结果
     */
    public int insertFavouredPolicy(FavouredPolicy favouredPolicy);

    /**
     * 修改优惠政策
     *
     * @param favouredPolicy 优惠政策
     * @return 结果
     */
    public int updateFavouredPolicy(FavouredPolicy favouredPolicy);

    /**
     * 删除优惠政策
     *
     * @param favouredPolicyId 优惠政策ID
     * @return 结果
     */
    public int deleteFavouredPolicyById(String favouredPolicyId);

    /**
     * 批量删除优惠政策
     *
     * @param favouredPolicyIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteFavouredPolicyByIds(String[] favouredPolicyIds);
}
